<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div class="container" id="content">
		<section class="content-header">
			<h1>
				<i class="fa fa-child"></i> <strong>警告配置管理</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>基础配置管理</li>
				<li class="active">警告配置管理</li>
			</ol>
		</section>
		<!-- Main content -->
		<section class="content">
			<div class="box box-info">
				<div class="box-header with-border">
					<i class="fa fa-th-list"></i>
					<h4 class="box-title">警告配置查询</h4>
				</div>
				<div class="box-body">
					<div class="form-inline">
						<div class="input-group">
							<input type="text" id="search" class="form-control"
								placeholder="search..." style="width: 240px;" /> <span
								class="input-group-btn">
								<button type="button" class="btn btn-info searchBtn">查询</button>
								<button type="button" name="reset" id="reset-btn"
									class="btn btn-info resetBtn">撤消</button>
							</span>
						</div>
						<div class="form-group pull-right">
							<button type="button" class="btn btn-info addBtn">添加</button>
						</div>
					</div>
				</div>
				<div class="box box-body">
					<table width="100%" id="dataTable"
						class="mytable dataTable table-bordered text-center table-striped table-hover">
						<thead>
							<tr>
								<th width="5%">序号</th>
								<th width="10%">部件类型</th>
								<th width="15%">警告类型代码</th>
								<th width="15%">警告类型</th>
								<th width="15%">操作</th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
				</div>
			</div>
		</section>
		<!--用户信息添加弹窗-->
		<div class="modal" id="wartStatusModal">
			<div class="modal-dialog" role="dialog">

				<div class="modal-content">
					<form id="userEditForm">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>警告配置信息</strong>
							</h4>
						</div>
						<div class="modal-body">
							<input type="hidden" name="id" id="id" />
							<div class="form-horizontal">
								<div class="row">
									<section class="col-lg-12">
										<div class="form-group">
											<label class="col-sm-3 control-label">警告类型代码</label>
											<div class="col-sm-8">
												<div class="col-md-10">
													<input class="form-control" type="text" name="warnStatus" id="warnStatus" datatype="*" nullmsg="请填写警告类型代码" />
												</div>
												<div class="col-md-2">
													<span style="color: #F00; fontsize: 30px">*</span>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-3 control-label">警告类型</label>
											<div class="col-sm-8">
												<div class="col-md-10">
													<input id="warnStatusName" name="warnStatusName" type="text" class="form-control" datatype="*" nullmsg="请填写警告类型" />
												</div>
												<div class="col-md-2">
													<span style="color: #F00; fontsize: 30px">*</span>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-3 control-label">设备类型</label>
											<div class="col-sm-8">
												<div class="col-md-10">
													<select class="form-control" name="partsType" id="partsType" style="width: 100%;">
														<option/>
														<option th:each="partsType:${partsTypes}" th:text="${partsType.parts_name}" th:value="${partsType.id}"></option>
													</select>
												</div>
												<div class="col-md-2">
													<span style="color: #F00; fontsize: 30px">*</span>
												</div>
											</div>
										</div>
									</section>
								</div>
							</div>

							<div class="modal-footer">
								<button type="button" class="btn btn-primary saveBtn">保存</button>
								<button type="button" class="btn btn-default"
									data-dismiss="modal">返回</button>
							</div>
						</div>
					</form>
				</div>

			</div>
		</div>
		<script th:src="@{/warnStatus/warnStatusIndex.js}"></script>
		<script th:src="@{/plugins/sha256.js}"></script>
	</div>

</body>
</html>